package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NLaboratoryMechanicsWGroup;
import com.ruoyi.zhgd.domain.bo.NLaboratoryMechanicsWGroupBo;
import com.ruoyi.zhgd.domain.vo.NLaboratoryMechanicsWGroupVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 万能机主表信息Mapper接口
 *
 * @author tll
 * @date 2023-09-15
 */
public interface NLaboratoryMechanicsWGroupMapper extends BaseMapperPlus<NLaboratoryMechanicsWGroupMapper, NLaboratoryMechanicsWGroup, NLaboratoryMechanicsWGroupVo> {

    /**
     * 万能机设备信息列表
     * @param build
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NLaboratoryMechanicsWGroupVo> page(Page<Object> build, @Param("bo") NLaboratoryMechanicsWGroupBo bo);

    NLaboratoryMechanicsWGroupVo selectWGroupVo(Integer id);

    void updateEligible(@Param(value = "id") Integer id,@Param(value = "eligible") Integer eligible);

    NLaboratoryMechanicsWGroupVo selectWGroupVoById(Long id);
}
